package cn.geracomium.action;

import cn.geracomium.util.action.AbstractAction;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.io.IOException;

/**
 * Created by {wang jian} on 2018/06/25.
 */
@Controller
public class LoginAction extends AbstractAction {

    @RequestMapping("/loginShiro")
    public String loginPre(String mobile, String pwd) {
        if (isLogin()) {
           return "redirect:/pages/index.action";
        } else {
            return  "login";
        }
    }
}
